<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title>票卷模块-订单信息</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <link rel="stylesheet" href="${s.base}/js/layui/css/layui.css" media="all" />
    <link rel="stylesheet" href="${s.base}/css/base/base.css" media="all" /></head>

<body class="childrenBody">
<form class="layui-form">
    <input type="hidden" id="id" name="id" value="${ticketOrder.id}" />
    <div class="layui-form-item layui-row layui-col-xs12">
        <label class="layui-form-label">
            <span class="red">*</span>&nbsp;&nbsp;商品名称</label>
        <div class="layui-input-block">
            <input type="text" class="layui-input" name="name" value="${ticketOrder.name}" placeholder="请输入商品名称" lay-verify="required" autocomplete="off" /></div>
    </div>
    <div class="layui-form-item layui-row layui-col-xs12">
        <label class="layui-form-label">
            <span class="red">*</span>&nbsp;&nbsp;缩略图</label>
        <div class="layui-input-block">
            <input type="text" class="layui-input" name="thumImage" value="${ticketOrder.thumImage}" placeholder="请输入缩略图" lay-verify="required" autocomplete="off" /></div>
    </div>
    <div class="layui-form-item layui-row layui-col-xs12">
        <label class="layui-form-label">
            <span class="red">*</span>&nbsp;&nbsp;票卷商品id</label>
        <div class="layui-input-block">
            <input type="text" class="layui-input" name="ticketProductId" value="${ticketOrder.ticketProductId}" placeholder="请输入票卷商品id" lay-verify="required" autocomplete="off" /></div>
    </div>
    <div class="layui-form-item layui-row layui-col-xs12">
        <label class="layui-form-label">
            <span class="red">*</span>&nbsp;&nbsp;会员id</label>
        <div class="layui-input-block">
            <input type="text" class="layui-input" name="memberId" value="${ticketOrder.memberId}" placeholder="请输入会员id" lay-verify="required" autocomplete="off" /></div>
    </div>
    <div class="layui-form-item layui-row layui-col-xs12">
        <label class="layui-form-label">
            <span class="red">*</span>&nbsp;&nbsp;订单状态</label>
        <div class="layui-input-block">
            <select class="form-control" name="status" lay-verify="required" id="status"></select>
        </div>
    </div>
    <div class="layui-form-item layui-row layui-col-xs12">
        <label class="layui-form-label">
            <span class="red">*</span>&nbsp;&nbsp;购买数量</label>
        <div class="layui-input-block">
            <input type="text" class="layui-input" name="buyNum" value="${ticketOrder.buyNum}" placeholder="请输入购买数量" lay-verify="required" autocomplete="off" /></div>
    </div>
    <div class="layui-form-item layui-row layui-col-xs12">
        <label class="layui-form-label">
            <span class="red">*</span>&nbsp;&nbsp;单价</label>
        <div class="layui-input-block">
            <input type="text" class="layui-input" name="unitPrice" value="${ticketOrder.unitPrice}" placeholder="请输入单价" lay-verify="required" autocomplete="off" /></div>
    </div>
    <div class="layui-form-item layui-row layui-col-xs12">
        <label class="layui-form-label">
            <span class="red">*</span>&nbsp;&nbsp;优惠金额</label>
        <div class="layui-input-block">
            <input type="text" class="layui-input" name="couponMoney" value="${ticketOrder.couponMoney}" placeholder="请输入优惠金额" lay-verify="required" autocomplete="off" /></div>
    </div>
    <div class="layui-form-item layui-row layui-col-xs12">
        <label class="layui-form-label">
            <span class="red">*</span>&nbsp;&nbsp;优惠卷id</label>
        <div class="layui-input-block">
            <input type="text" class="layui-input" name="couponId" value="${ticketOrder.couponId}" placeholder="请输入优惠卷id" lay-verify="required" autocomplete="off" /></div>
    </div>
    <div class="layui-form-item layui-row layui-col-xs12">
        <label class="layui-form-label">
            <span class="red">*</span>&nbsp;&nbsp;支付价格</label>
        <div class="layui-input-block">
            <input type="text" class="layui-input" name="resultMoney" value="${ticketOrder.resultMoney}" placeholder="请输入支付价格" lay-verify="required" autocomplete="off" /></div>
    </div>
    <div class="layui-form-item layui-row layui-col-xs12">
        <label class="layui-form-label">
            <span class="red">*</span>&nbsp;&nbsp;支付类型</label>
        <div class="layui-input-block">
            <select class="form-control" name="paymentType" lay-verify="required" id="paymentType"></select>
        </div>
    </div>
    <div class="layui-form-item layui-row layui-col-xs12">
        <label class="layui-form-label">
            <span class="red">*</span>&nbsp;&nbsp;买家留言</label>
        <div class="layui-input-block">
            <textarea class="layui-textarea" name="buyerMessage" lay-verify="content" placeholder="请输入买家留言">${ticketOrder.buyerMessage}</textarea></div>
    </div>
    <div class="layui-form-item layui-row layui-col-xs12">
        <label class="layui-form-label">
            <span class="red">*</span>&nbsp;&nbsp;付款时间</label>
        <div class="layui-input-block">
            <input type="text" class="layui-input" name="paymentTime" value="${ticketOrder.paymentTime}" placeholder="请输入付款时间" lay-verify="required" autocomplete="off" /></div>
    </div>
    <div class="layui-form-item layui-row layui-col-xs12">
        <label class="layui-form-label">
            <span class="red">*</span>&nbsp;&nbsp;微信订单号</label>
        <div class="layui-input-block">
            <input type="text" class="layui-input" name="wechatOrderNo" value="${ticketOrder.wechatOrderNo}" placeholder="请输入微信订单号" lay-verify="required" autocomplete="off" /></div>
    </div>
    <div class="layui-form-item layui-row layui-col-xs12">
        <label class="layui-form-label">
            <span class="red">*</span>&nbsp;&nbsp;姓名</label>
        <div class="layui-input-block">
            <input type="text" class="layui-input" name="linkName" value="${ticketOrder.linkName}" placeholder="请输入姓名" lay-verify="required" autocomplete="off" /></div>
    </div>
    <div class="layui-form-item layui-row layui-col-xs12">
        <label class="layui-form-label">
            <span class="red">*</span>&nbsp;&nbsp;手机号</label>
        <div class="layui-input-block">
            <input type="text" class="layui-input" name="linkPhone" value="${ticketOrder.linkPhone}" placeholder="请输入手机号" lay-verify="required" autocomplete="off" /></div>
    </div>
    <div class="layui-form-item layui-row layui-col-xs12">
        <label class="layui-form-label">
            <span class="red">*</span>&nbsp;&nbsp;扫码人</label>
        <div class="layui-input-block">
            <input type="text" class="layui-input" name="useMemberId" value="${ticketOrder.useMemberId}" placeholder="请输入扫码人" lay-verify="required" autocomplete="off" /></div>
    </div>
    <div class="layui-form-item layui-row layui-col-xs12">
        <label class="layui-form-label">
            <span class="red">*</span>&nbsp;&nbsp;使用时间</label>
        <div class="layui-input-block">
            <input type="text" class="layui-input" name="useTime" value="${ticketOrder.useTime}" placeholder="请输入使用时间" lay-verify="required" autocomplete="off" /></div>
    </div>
    <div class="layui-form-item layui-row layui-col-xs12">
        <label class="layui-form-label">
            <span class="red">*</span>&nbsp;&nbsp;退货原因</label>
        <div class="layui-input-block">
            <textarea class="layui-textarea" name="returnMessage" lay-verify="content" placeholder="请输入退货原因">${ticketOrder.returnMessage}</textarea></div>
    </div>
    <div class="layui-form-item layui-row layui-col-xs12">
        <label class="layui-form-label">
            <span class="red">*</span>&nbsp;&nbsp;售后状态</label>
        <div class="layui-input-block">
            <select class="form-control" name="serviceState" lay-verify="required" id="serviceState"></select>
        </div>
    </div>
    <div class="layui-form-item layui-row layui-col-xs12">
        <label class="layui-form-label">
            <span class="red">*</span>&nbsp;&nbsp;售后描述</label>
        <div class="layui-input-block">
            <textarea class="layui-textarea" name="serviceMessage" lay-verify="content" placeholder="请输入售后描述">${ticketOrder.serviceMessage}</textarea></div>
    </div>
    <div class="layui-form-item layui-row layui-col-xs12">
        <div class="layui-input-block">
            <button class="layui-btn layui-btn-sm" lay-submit="" lay-filter="submitBtn">确定</button>
            <button type="reset" class="layui-btn layui-btn-sm layui-btn-primary cancel">取消</button></div>
    </div>
</form>
<script type="text/javascript" src="${s.base}/js/layui/layui.js"></script>
<script type="text/javascript" src="${s.base}/js/base/base.js"></script>
<script type="text/javascript">layui.use(['form', 'jquery', 'baseUtil', 'pageUtil'],
    function() {
        var form = layui.form,
            $ = layui.jquery,
            baseUtil = layui.baseUtil,
            pageUtil = layui.pageUtil;
        pageUtil.initDict("ticket_order_status,ticket_payment_type,ticket_service_state",
            function(dictData) {
                pageUtil.showDict($("#status"), pageUtil.aceeptDictContentList(dictData, "ticket_order_status"), "", '${ticketOrder.status}');
                pageUtil.showDict($("#paymentType"), pageUtil.aceeptDictContentList(dictData, "ticket_payment_type"), "", '${ticketOrder.paymentType}');
                pageUtil.showDict($("#serviceState"), pageUtil.aceeptDictContentList(dictData, "ticket_service_state"), "", '${ticketOrder.serviceState}');
            });
        form.on('submit(submitBtn)',
            function(data) {
                baseUtil.postMethodResult("/ticketOrder/addOrUpdate", data.field,
                    function(result) {
                        parent.location.reload();
                    });
                return false;
            });
    });</script>
</body>

</html>